package com.wodsy.phoenix.dataobject.shopc.model;

// Generated 2015-3-6 15:40:39 by Hibernate Tools 3.4.0.CR1

import com.wodsy.phoenix.dataobject.base.PhoenixObject;
import com.wodsy.phoenix.dataobject.base.PhoenixRequest;
import com.wodsy.phoenix.dataobject.base.PhoenixResponse;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbShopkeeperRecommendGoods generated by hbm2java
 */
@Entity
@Table(name = "tb_shopkeeper_recommend_goods", catalog = "shopc")
public class ShopkeeperRecommendGoods extends PhoenixObject implements Serializable,PhoenixRequest,PhoenixResponse {

	private Integer id;
	private int shopId;
	private int goodsId;
	private Integer weight;
	private Date operTime;

	public ShopkeeperRecommendGoods() {
	}

	public ShopkeeperRecommendGoods(int shopId, int goodsId, Date operTime) {
		this.shopId = shopId;
		this.goodsId = goodsId;
		this.operTime = operTime;
	}

	public ShopkeeperRecommendGoods(int shopId, int goodsId, Integer weight,
			Date operTime) {
		this.shopId = shopId;
		this.goodsId = goodsId;
		this.weight = weight;
		this.operTime = operTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "shop_id", nullable = false)
	public int getShopId() {
		return this.shopId;
	}

	public void setShopId(int shopId) {
		this.shopId = shopId;
	}

	@Column(name = "goods_id", nullable = false)
	public int getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}

	@Column(name = "weight")
	public Integer getWeight() {
		return this.weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "add_time", length = 19)
	public Date getOperTime() {
		return this.operTime;
	}

	public void setOperTime(Date operTime) {
		this.operTime = operTime;
	}

	@Override
	public String toString() {
		return "ShopkeeperRecommendGoods [id=" + id + ", shopId=" + shopId
				+ ", goodsId=" + goodsId + ", weight=" + weight + ", operTime="
				+ operTime + "]";
	}

}
